﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VergenereEncryptionWinForm
{
    public partial class FrmMain : Form
    {
        Encryption encry =new Encryption();
        public FrmMain()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void Plain_Click(object sender, EventArgs e)
        {
            
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            encry.Plain=this.textBox1.Text;
            encry.Key = this.textBox2.Text;
            encry.Key1 = encry.Key.ToLower();
            encry.Key2 = encry.Key.ToUpper();
            encry.Encode();
            Cipher.Text = encry.CipherText;
        }
    }
}
